<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!DOCTYPE html>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -->
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<title>Bootstrap</title>

<!-- Bootstrap -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">

<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
<!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
<!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
</head>
<body>
	<div class="navbar navbar-inverse">
		<div class="container-fluid">
			<!-- Brand and toggle get grouped for better mobile display -->
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed"
					data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
					aria-expanded="false">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<div class="navbar-brand">
					<small class="glyphicon glyphicon-eye-open"> xxx 应用系统</small>
				</div>
			</div>

			<!-- Collect the nav links, forms, and other content for toggling -->
			<div class="collapse navbar-collapse"
				id="bs-example-navbar-collapse-1">

				<ul class="nav navbar-nav navbar-right">
					<li><a href="#"> <span class="glyphicon glyphicon-tasks"></span>
							<i class="badge">2</i>
					</a></li>

					<li><a href="#"> <span class="glyphicon glyphicon-magnet"></span>
							<i class="badge">1</i>
					</a></li>

					<li><a href="#" data-toggle="dropdown"><img
							class="img-circle"
							src="images/user_photo.jpg" width="30"
							height="30" /> <small>欢迎</small> admin <span class="caret"></span>
					</a>

						<ul class="nav nav-pills nav-stacked dropdown-menu">
							<li><a href="#">设置1</a></li>
							<li><a href="#">Another action</a></li>
							<li><a href="#">Something else here</a></li>
							<li role="separator" class="divider"></li>
							<li><a href="#">Separated link</a></li>
						</ul></li>
				</ul>
			</div>
			<!-- /.navbar-collapse -->
		</div>
		<!-- /.container-fluid -->
	</div>

	<div class="row">
		<div class="col-md-2">

			<div class="input-group input-group-sm">
				<input type="text" class="form-control input-sm">
				<div class="input-group-btn">
					<a href="#" class="btn btn-success btn-sm"> <span
						class="glyphicon glyphicon-search"></span>
					</a>
				</div>
			</div>

			<div class="panel-group" id="accordion" role="tablist"
				aria-multiselectable="true">
				<div class="panel panel-default">
					<div class="panel-heading" role="tab" id="headingOne">
						<h4 class="panel-title">
							<a role="button" data-toggle="collapse" data-parent="#accordion"
								href="#collapseOne" aria-expanded="true"
								aria-controls="collapseOne"> 用户管理 </a>
						</h4>
					</div>
					<div id="collapseOne" class="panel-collapse collapse in"
						role="tabpanel" aria-labelledby="headingOne">
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">
								<li><a href="#">用户列表</a></li>
								<li><a href="#">用户添加</a></li>
								<li><a href="#">用户删除</a></li>
							</ul>
						</div>
					</div>
				</div>
				<div class="panel panel-default">
					<div class="panel-heading" role="tab" id="headingTwo">
						<h4 class="panel-title">
							<a class="collapsed" role="button" data-toggle="collapse"
								data-parent="#accordion" href="#collapseTwo"
								aria-expanded="false" aria-controls="collapseTwo"> 产品管理 </a>
						</h4>
					</div>
					<div id="collapseTwo" class="panel-collapse collapse"
						role="tabpanel" aria-labelledby="headingTwo">
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">
								<li><a href="#">用户列表</a></li>
								<li><a href="#">用户添加</a></li>
								<li><a href="#">用户删除</a></li>
							</ul>
						</div>
					</div>
				</div>

			</div>

		</div>
		<div class="col-md-10">
			<div>
				<ol class="breadcrumb">
					<li><a href="#">Home</a></li>
					<li><a href="#">Library</a></li>
					<li class="active">Data</li>
				</ol>
			</div>

			<div class="panel panel-default">
				<div class="panel-heading">
					<a class="panel-title">用户管理</a>
				</div>

				<div class="panel-body">

					<table class="table table-striped">
						<thead>
							<tr>
								<th>ID</th>
								<th>用户名</th>
								<th>密码</th>
								<th>状态</th>
								<th>角色</th>
								<th>操作</th>

							</tr>
						</thead>
						<tbody>
							<c:forEach items="${userlist}" var="user">
								<tr>
									<td>${user.userid}</td>
									<td>${user.username}</td>
									<td>${user.userpwd}</td>
									<td>${user.userstate}</td>
									<td><c:forEach items="${user.role}" var="role">
									${role.rolename},								
								</c:forEach></td>
									<td><a href="#"><span class="glyphicon glyphicon-ok"></span></a>
									</td>
								</tr>

							</c:forEach>
						</tbody>

						<tfoot>
							<tr>
								<td colspan="6"><nav aria-label="Page navigation">
									<ul class="pagination">
										<li><a href="#" aria-label="Previous"> <span
												aria-hidden="true">&laquo;</span>
										</a></li>
										<li><a href="#">1</a></li>
										<li><a href="#">2</a></li>
										<li><a href="#">3</a></li>
										<li><a href="#">4</a></li>
										<li><a href="#">5</a></li>
										<li><a href="#" aria-label="Next"> <span
												aria-hidden="true">&raquo;</span>
										</a></li>
									</ul>
									</nav></td>

							</tr>

						</tfoot>
					</table>

				</div>

			</div>

		</div>
	</div>


</body>
</html>